import { createApp } from 'vue'
import App from './App.vue'
//导入路由
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import axios from 'axios'



//createApp(App).use(router).use(ElementPlus).mount('#app')

const app = createApp(App)
//挂载axios，如果没有挂载会报错 axios 过量使用
app.config.globalProperties.$axios = axios

app.use(router)
app.use(ElementPlus)


//app.use(axios)
//挂载
app.mount('#app')

